Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.core.LifecycleCoreExtensions--lifecycle

This contribution is part of XML component org.nuxeo.ecm.core.LifecycleCoreExtensions inside nuxeo-core-9.10.jar /OSGI-INF/LifeCycleCoreExtensions.xml

Documentation

Nuxeo core default life cycle definition.

Extension Point

Extension point lifecycle of component LifeCycleService.

Contributed Items

  • <lifecycle defaultInitial="project" name="default">
          <transitions>
            <transition destinationState="approved" name="approve">
              <description>Approve the content</description>
            </transition>
            <transition destinationState="obsolete" name="obsolete">
              <description>Content becomes obsolete</description>
            </transition>
            <transition destinationState="deleted" name="delete">
              <description>Move document to trash (temporary delete)</description>
            </transition>
            <transition destinationState="project" name="undelete">
              <description>Recover the document from trash</description>
            </transition>
            <transition destinationState="project" name="backToProject">
              <description>Recover the document from trash</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" initial="true" name="project">
              <transitions>
                <transition>approve</transition>
                <transition>obsolete</transition>
                <transition>delete</transition>
              </transitions>
            </state>
            <state description="Content has been validated" name="approved">
              <transitions>
                <transition>delete</transition>
                <transition>backToProject</transition>
              </transitions>
            </state>
            <state description="Content is obsolete" name="obsolete">
              <transitions>
                <transition>delete</transition>
                <transition>backToProject</transition>
              </transitions>
            </state>
            <state description="Document is deleted" name="deleted">
              <transitions>
                <transition>undelete</transition>
              </transitions>
            </state>
          </states>
        </lifecycle>

    Recover the document from trash

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <documentation>Nuxeo core default life cycle definition.</documentation>

    <lifecycle defaultInitial="project" name="default">
      <transitions>
        <transition destinationState="approved" name="approve">
          <description>Approve the content</description>
        </transition>
        <transition destinationState="obsolete" name="obsolete">
          <description>Content becomes obsolete</description>
        </transition>
        <transition destinationState="deleted" name="delete">
          <description>Move document to trash (temporary delete)</description>
        </transition>
        <transition destinationState="project" name="undelete">
          <description>Recover the document from trash</description>
        </transition>
        <transition destinationState="project" name="backToProject">
          <description>Recover the document from trash</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" initial="true" name="project">
          <transitions>
            <transition>approve</transition>
            <transition>obsolete</transition>
            <transition>delete</transition>
          </transitions>
        </state>
        <state description="Content has been validated" name="approved">
          <transitions>
            <transition>delete</transition>
            <transition>backToProject</transition>
          </transitions>
        </state>
        <state description="Content is obsolete" name="obsolete">
          <transitions>
            <transition>delete</transition>
            <transition>backToProject</transition>
          </transitions>
        </state>
        <state description="Document is deleted" name="deleted">
          <transitions>
            <transition>undelete</transition>
          </transitions>
        </state>
      </states>
    </lifecycle>
  </extension>